#include "StdAfx.h"
#include "GlobelEvent.h"
#include "GlobelSetting.h"
GlobelEvent::GlobelEvent(osg::Node   *node)
{
	thisNode  = node;
}
bool GlobelEvent::handle(const osgGA::GUIEventAdapter&ea,osgGA::GUIActionAdapter& us) 
{
	if(  ea.getEventType() == osgGA::GUIEventAdapter::PUSH )
	{
		GlobelSetting::GetInstance()->SetPickedNode(thisNode.get());
	}
	return  true;
}
GlobelEvent::~GlobelEvent(void)
{
}
